import java.util.Arrays;

public class SolutionInterview16_11 {
    public int[] divingBoard(int shorter, int longer, int k) {
        if (shorter==longer){
            return k!=0?new int[]{shorter*k}:new int[0];
        }else{
            int[] ans=new int[k+1];
            ans[0]=shorter*k;
            for (int i=1;i<=k;i++){
                ans[i]=ans[i-1]+longer-shorter;
            }
            return ans;
        }
    }

    public static void main(String[] args) {
        System.out.println(Arrays.toString(new SolutionInterview16_11().divingBoard(1, 2, 3)));
    }
}
